package cn.school.controller.app;

import cn.school.app.service.TuitionPaymentService;
import cn.school.common.api.CommonResult;
import cn.school.pay.vo.ChargeItemVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * 学生学费相关
 */
@RestController
@RequestMapping("/app/tuition")
@Api(tags = "TuitionPaymentController=> 学生学费相关")
public class TuitionPaymentController {

    @Resource
    TuitionPaymentService tuitionPaymentService;

    @ApiOperation("查询登录学生的学费信息")
    @GetMapping(value = "/studentTuition")
    public CommonResult<List<ChargeItemVO>> findStudentTuitionInfo() {
        List<ChargeItemVO> itemVO =  tuitionPaymentService.findStudentTuition();
        return CommonResult.success(itemVO);
    }
}
